package com.spring.wechat.web.service;

import java.util.HashMap;

import org.springframework.web.multipart.MultipartFile;

import com.spring.security.web.model.BaseResult;
import com.wechat.api.web.model.StoryAlbum;
import com.wechat.api.web.model.StoryAlbumDetail;
import com.wechat.api.web.model.StoryAlbumRequest;
import com.wechat.api.web.model.StoryCollection;
import com.wechat.api.web.model.StoryComment;
import com.wechat.api.web.model.StoryCommentPraise;
import com.wechat.api.web.model.StoryPlayHistory;


public interface StoryService {
	BaseResult comment(StoryComment storyComment) throws Exception;
	BaseResult likeComment(StoryCommentPraise storyCommentPraise) throws Exception;
	BaseResult cancelLikeComment(String token,String commentID) throws Exception;
	BaseResult album(String token,String name,String desc) throws Exception;
	BaseResult album(String token) throws Exception ;
	BaseResult delAlbum(String albumID,String token) throws Exception ;
	BaseResult albumDetail(StoryAlbumRequest storyAlbumRequest) throws Exception;
	BaseResult albumDetail(String storyAlbumid,String token,String pageSize,String pageIndex,String skip,String rows) throws Exception;
	BaseResult albumDetailDeleteBefore(StoryAlbumRequest storyAlbumRequest) throws Exception;
	
	BaseResult updateAlbumDetail(StoryAlbumDetail storyAlbumDetail) throws Exception;
	BaseResult updateAlbum(StoryAlbum storyAlbum) throws Exception ;
	BaseResult delAlbumDetail(String childrenStoryID,String albumID,String token) throws Exception;
	/*	BaseResult albumDetail(String albumID) throws Exception;*/
	BaseResult storyCollection(String storyID,String token) throws Exception ;
	BaseResult storyCollection(String token,String skip,String rows) throws Exception;
	BaseResult delPlayHistory(String storyID,String token) throws Exception;
	BaseResult delStoryCollection(String storyCollectionID,String token)  throws Exception;
	BaseResult comment(String storyID) throws Exception;
	BaseResult delcomment(String commentID,String token) throws Exception;
	BaseResult playHistory(StoryPlayHistory storyPlayHistory) throws Exception;
	BaseResult playHistory(String token,String skip,String rows) throws Exception;
/*	public BaseResult uploadVoiceByFile(String token, MultipartFile voicefile) 
			throws Exception;*/
	HashMap<String, Object> commitFile(String folder,String durationTime,MultipartFile file) throws Exception;
	BaseResult userCount(String token) throws Exception;
	BaseResult storyHost(String hostID,String token) throws Exception ;
	BaseResult delStoryHost(String hostCollectionID,String token) throws Exception;
	BaseResult storyHost(String token,String skip,String rows) throws Exception ;
}
